package com.mxx.common.generator;

import com.mxx.common.http.ApacheHttpResponse;
import com.mxx.common.http.ApacheHttpUtil;
import com.mxx.common.http.OKHttpUtil;
import com.mxx.common.utils.CharsetUtil;

import java.util.HashMap;
import java.util.Map;

public class Test2 {
    private static final String url = "https://zidv2.market.alicloudapi.com/idcheck/Post";

    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("cardNo", "430525199907167411");
        map.put("realName", "曾广宇");
        Map header = new HashMap();
        header.put("Authorization", "APPCODE 7932cdc322634c1dad831e49b8c40f6f");
        ApacheHttpResponse responseEntity = ApacheHttpUtil.doPostForm(url, map, header, CharsetUtil.CHARSET_UTF_8);


        System.out.println(responseEntity.getBody());
    }
}
